package com.jian.mall.produce.feign;

import com.jian.mall.common.to.SkuReductionTo;
import com.jian.mall.common.to.SpuBoundTo;
import com.jian.mall.common.utils.R;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBound(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuBound(@RequestBody SkuReductionTo reductionTo);
}
